<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!-- <style>
.datagrid-cell{overflow:visible;}
</style> -->

<!--breadcrumb navigation-->
<ol class="breadcrumb">
	<li>
		<a href="base" class="fa fa-home"></a>
	</li>
	<li>
		<a href="<%=request.getContextPath()%>">主页</a>
	</li>
	<li class="active">日志配置</li>
</ol>
<!--/.breadcrumb navigation-->

<!--datagrid toolbar-->
<div id="toolbar" class="bsui-toolbar" >
	<a class="bsui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="showAddDlg()" style="margin: 0 .1em;"><i class="glyphicon glyphicon-plus"></i> 新增</a> 
	<a class="bsui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="editRow()" style="margin: 0 .1em;"><i class="glyphicon glyphicon-edit"></i> 修改</a>
	<a class="bsui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="delRow()" style="margin: 0 .1em;"><i class="glyphicon glyphicon-remove"></i> 删除</a> 
	<a class="bsui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="showQueryDlg()" style="margin: 0 .1em;"><i class="glyphicon glyphicon-search"></i> 查询</a>
</div>
<!--/.datagrid toolbar-->

<!--datagrid-->
<table id="datagrid" title="日志配置" style="width: 100%;" data-options="
	toolbar:'#toolbar',
    rownumbers:true,
    fitColumn:true,
    singleSelect:true,
    pagination:true,
    layout:['first','prev','links','next','last','refresh']">
</table>
<!--datagrid-->

<!--add or edit dialog-->
<div id="addOrEditDlg" class="bsui-dialog" style="display:none;" data-options="
    title:'新增或修改',
	modal:true,
	width:650,
	height:'auto',
	collapsible:false,
	minimizable:false,
	maximizable:false,
	closed:true,
	buttons:'#addOrEditBtns',
	onClosed:function(){clear();}">
	<form id="addOrEditForm" method="post">
		<input type="hidden" name="logConfigure.id" class="bsui-textbox"/>
		<br/>
		<input class="bsui-textbox" name="logConfigure.title" data-options="
				label:'操作名称:',labelPosition:'before',multiline:true"
				style="font-size:12px;width:540px; height: 60px;"/>
		<input class="bsui-textbox" name="logConfigure.method" data-options="
				label:'接口设置:',labelPosition:'before',multiline:true"
				style="font-size:12px;width:540px; height: 60px;"/>
		<input class="bsui-textbox" name="logConfigure.args" data-options="
				label:'参数设置:',labelPosition:'before',multiline:true"
				style="font-size:12px;width:540px; height: 60px;"/>
	</form>
</div>
<!--/.add or edit dialog-->
<!--add or edit dialog buttons-->
<div id="addOrEditBtns">
  <a class="bsui-linkbutton" data-options="btnCls:'primary',size:'sm'" onclick="save()">提交</a> 
  <a class="bsui-linkbutton" data-options="btnCls:'gray',size:'sm'" onclick="cancelSave()">取消</a>
</div>
<!--add or edit dialog buttons-->

<!--query dialog-->
<div id="queryDlg" class="bsui-dialog" title="条件查询" style="display:none;" data-options="
    modal:true,
    width:650,
    height:'auto',
    collapsible:false,
	minimizable:false,
	maximizable:false,
    closed:true,
    buttons:'#queryBtns',
    onClosed:function(){clear();}">
	<form id="queryForm" method="post">
	<br/>
	<input class="bsui-textbox" type="text" name="logConfigure.title" data-options="
          label:'操作名称:',labelPosition:'before',multiline:true" 
          style="font-size:12px;width:540px; height: 60px;"/>
	<input class="bsui-textbox" type="text" name="logConfigure.method" data-options="
          label:'接口设置:',labelPosition:'before',multiline:true" 
          style="font-size:12px;width:540px; height: 60px;"/>
    <input class="bsui-textbox" type="text" name="logConfigure.args" data-options="
          label:'参数设置:',labelPosition:'before',multiline:true" 
          style="font-size:12px;width:540px; height: 60px;"/>
	</form>
</div>
<!--/.query dialog-->
<!--query dialog buttons-->
<div id="queryBtns">
  <a class="bsui-linkbutton" data-options="btnCls:'primary',size:'sm'" onclick="query()">提交</a> 
  <a class="bsui-linkbutton" data-options="btnCls:'gray',size:'sm'" onclick="cancelQuery()">取消</a>
</div>
<!--query dialog buttons-->

<script type="text/javascript" src="<%=request.getContextPath()%>/base/js/log/logconfig.js"></script>